package cn.com.taurus.impl;

import cn.com.taurus.entity.ClientAccount;
import cn.com.taurus.entity.DealMessage;
import cn.com.taurus.mapper.ClientAccountMapper;
import cn.com.taurus.service.ClientAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
/**
 * @author yh
 * @createTime 2021-06-23 16:41:51:01:21
 * @remark 业务逻辑层
 * @version 1.0
 */
@Service
public class ClientAccountImpl implements ClientAccountService {
    @Autowired
    ClientAccountMapper clientAccountMapper;

    @Override
    public int clientAccountAccountStatusUpdate(String accountStatus, Integer caId) {
        return clientAccountMapper.clientAccountAccountStatusUpdate(accountStatus,caId);
    }

    @Override
    public int clientAccountFrozenMoneyUpdate(Double frozenMoney, Integer caId) {
        return clientAccountMapper.clientAccountFrozenMoneyUpdate(frozenMoney,caId);
    }

    @Override
    public int clientAccountRegister(ClientAccount clientaccount) {
        return clientAccountMapper.clientAccountRegister(clientaccount);
    }

    @Override
    public Integer selectBuyPasswordByCId(Integer cId) {
        return clientAccountMapper.selectBuyPasswordByCId(cId);
    }

    @Override
    public ClientAccount selectAllPurse(Integer cid) {
        return clientAccountMapper.selectAllPurse(cid);
    }

    @Override
    public Integer clientAccountUpdate(ClientAccount clientAccount){
        return clientAccountMapper.clientAccountUpdate(clientAccount);
    }
    @Override
    public Integer selectCaIdByCid(Integer cId) {
        return clientAccountMapper.selectCaIdByCid(cId);
    }
    @Override
    public Integer selectCIdByCaId(Integer caId){return clientAccountMapper.selectCIdByCaId(caId);}
    @Override
    public Double selectOverAllAssetByCaId(Integer caId) {
        return clientAccountMapper.selectOverAllAssetByCaId(caId);
    }

    @Override
    public Integer chargeMoney(Double overAllAsset, Integer caId) {
        return clientAccountMapper.chargeMoney(overAllAsset,caId);
    }


}
